package com.awesome.media;

import android.net.Uri;
import android.view.Surface;

/**
 * Author: JFangZ
 * Email:janezhang1901@163.com
 * Date: 2020/4/29 14:24
 * Description:
 */
public interface IMediaPlayer {
    void setDisplay(Surface surface);

    void play(Uri uri);

    void start();

    void pause();

    void stop();

    void reset();

    void release();

    void seekTo(long position);

    boolean isPlaying();

    long getCurrentPosition();

    long getDuration();

    void setMediaPlayerListener(IMediaPlayerListener mediaPlayerListener);

    int getAudioSessionId();

    int getVideoWidth();

    int getVideoHeight();

    void setVolume(float volume);

    void setSpeed(float speed);

    float getSpeed();

}
